package com.team.mp.mapper.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team.mp.mapper.entity.SysRolePermission;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

/**
 * 角色权限表(SysRolePermission)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-27 16:34:07
 */
public interface SysRolePermissionDao extends BaseMapper<SysRolePermission> {
    @Delete("delete from sys_role_permission where role_id=#{rid}")
    int deleteByRid(int rid);

    int insertBatch(List<SysRolePermission> list);
}

